package com.dimples.dd.system.model.form;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

/**
 * @author zhongyj <1126834403@qq.com><br/>
 * @date 2024/8/20
 */
@Schema(description = "上传文件 Form")
@Data
public class FileUploadForm {

    @Schema(description = "文件附件", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "文件附件不能为空")
    private MultipartFile file;

    @Schema(description = "文件附件", example = "test.png")
    private String path;

}
